package cn.kgc.ssm.mapper;

import cn.kgc.ssm.entity.Course;
import cn.kgc.ssm.vo.CourseVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 课工场
 * @date 2024/11/21
 * @description
 */
public interface CourseMapper {

    List<CourseVO> selectCourses(String courseName);

    void insertCourse(Course course);

    void updateCourse(Course course);

    void updateCourseImg(@Param("courseId") String courseId,@Param("fileName") String fileName);

    void deleteCourse(String img);

    List<Course> selectCoursesByTypeId(@Param("list") List<Integer> ids);
}
